package com.ruoyi.veterinary.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账单明细对象 vet_bill_detail
 * 
 * @author ruoyi
 * @date 2024-01-19
 */
public class VetBillDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 账单ID */
    @Excel(name = "账单ID")
    private Long billId;

    /** 出货ID */
    @Excel(name = "出货ID")
    private Long outboundId;

    /** 出货单号 */
    @Excel(name = "出货单号")
    private String outboundOrderNo;

    /** 出货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundDate;

    /** 兽药名称 */
    @Excel(name = "兽药名称")
    private String drugName;

    /** 规格 */
    @Excel(name = "规格")
    private String drugSpecification;

    /** 数量 */
    @Excel(name = "数量")
    private Integer quantity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }
    public void setOutboundId(Long outboundId) 
    {
        this.outboundId = outboundId;
    }

    public Long getOutboundId() 
    {
        return outboundId;
    }
    public void setOutboundOrderNo(String outboundOrderNo) 
    {
        this.outboundOrderNo = outboundOrderNo;
    }

    public String getOutboundOrderNo() 
    {
        return outboundOrderNo;
    }
    public void setOutboundDate(Date outboundDate) 
    {
        this.outboundDate = outboundDate;
    }

    public Date getOutboundDate() 
    {
        return outboundDate;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setDrugSpecification(String drugSpecification) 
    {
        this.drugSpecification = drugSpecification;
    }

    public String getDrugSpecification() 
    {
        return drugSpecification;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("billId", getBillId())
            .append("outboundId", getOutboundId())
            .append("outboundOrderNo", getOutboundOrderNo())
            .append("outboundDate", getOutboundDate())
            .append("drugName", getDrugName())
            .append("drugSpecification", getDrugSpecification())
            .append("quantity", getQuantity())
            .append("unitPrice", getUnitPrice())
            .append("amount", getAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}